package com.ruoyi.cash.domain.persistantobject.promotion;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzq
 * @since 2024-12-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cash_promotion_rule")
public class PromotionRulePO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 规则编号，唯一标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 业务单元编号
     */
    private Integer segNo;

    /**
     * 店铺ID 
     */
    private Long shopId;

    /**
     * 规则类型
     */
    private String ruleType;

    /**
     * 规则条件
     */
    private String ruleCondition;

    /**
     * 折扣金额
     */
    private BigDecimal discountAmount;

    /**
     * 促销开始时间
     */
    private LocalDateTime startTime;

    /**
     * 促销结束时间
     */
    private LocalDateTime endTime;

    /**
     * 促销规则是否处于活动状态
     */
    private Boolean isActive;


}
